CC = g++
RM = rm
CFLAGS = -g -Wall
GTK_CFLAGS = `pkg-config --cflags gtkmm-2.4`
GTK_LIBS = `pkg-config  --libs gtkmm-2.4`
.SUFFIXES:.cpp
SRCS =  board.cpp boardtextviewer.cpp humantextplayer.cpp rev_main.cpp \
    virtualtextplayer.cpp virtualplayer.cpp BoardCairoViewer.cpp MainWindow.cpp
OBJS = $(SRCS:.cpp=.o)

.cpp.o:
	$(CC) $(CFLAGS) -c $< $(GTK_CFLAGS)
rev: $(OBJS)
	$(CC)  -o $@ $(OBJS) $(GTK_LIBS)

clean:
	$(RM) *.o
	$(RM) rev.exe
